package com.gansu.weather.util;

import android.app.ProgressDialog;
import android.content.Context;

public class DialogUtil {
	static ProgressDialog pd;
	public static void openDialog(Context context,String msg){
		pd = new ProgressDialog(context);
		pd.setMessage(msg);
		pd.show();
	}
	
	public static void closeDialog(){
		if(pd!=null && pd.isShowing()){
			pd.cancel();
		}
	}
	
}
